Optimal. Leaf size=211 \[ -\frac {b n x}{8 e^2 \left (d+e x^2\right )}+\frac {b n \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{2 \sqrt {d} e^{5/2}}+\frac {d x \left (a+b \log \left (c x^n\right )\right )}{4 e^2 \left (d+e x^2\right )^2}-\frac {5 x \left (a+b \log \left (c x^n\right )\right )}{8 e^2 \left (d+e x^2\right )}+\frac {3 \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right ) \left (a+b \log \left (c x^n\right )\right )}{8 \sqrt {d} e^{5/2}}-\frac {3 i b n \text {Li}_2\left (-\frac {i \sqrt {e} x}{\sqrt {d}}\right )}{16 \sqrt {d} e^{5/2}}+\frac {3 i b n \text {Li}_2\left (\frac {i \sqrt {e} x}{\sqrt {d}}\right )}{16 \sqrt {d} e^{5/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.31, antiderivative size = 211, normalized size of antiderivative = 1.00, number of steps
used = 24, number of rules used = 9, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.391, Rules used = {294, 211,
2393, 2360, 2361, 12, 4940, 2438, 205} \begin {gather*} -\frac {3 i b n \text {PolyLog}\left (2,-\frac {i \sqrt {e} x}{\sqrt {d}}\right )}{16 \sqrt {d} e^{5/2}}+\frac {3 i b n \text {PolyLog}\left (2,\frac {i \sqrt {e} x}{\sqrt {d}}\right )}{16 \sqrt {d} e^{5/2}}+\frac {3 \text {ArcTan}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right ) \left (a+b \log \left (c x^n\right )\right )}{8 \sqrt {d} e^{5/2}}-\frac {5 x \left (a+b \log \left (c x^n\right )\right )}{8 e^2 \left (d+e x^2\right )}+\frac {d x \left (a+b \log \left (c x^n\right )\right )}{4 e^2 \left (d+e x^2\right )^2}+\frac {b n \text {ArcTan}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{2 \sqrt {d} e^{5/2}}-\frac {b n x}{8 e^2 \left (d+e x^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 205
Rule 211
Rule 294
Rule 2360
Rule 2361
Rule 2393
Rule 2438
Rule 4940
Rubi steps
\begin {align*} \int \frac {x^4 \left (a+b \log \left (c x^n\right )\right )}{\left (d+e x^2\right )^3} \, dx &=\int \left (\frac {d^2 \left (a+b \log \left (c x^n\right )\right )}{e^2 \left (d+e x^2\right )^3}-\frac {2 d \left (a+b \log \left (c x^n\right )\right )}{e^2 \left (d+e x^2\right )^2}+\frac {a+b \log \left (c x^n\right )}{e^2 \left (d+e x^2\right )}\right ) \, dx\\ &=\frac {\int \frac {a+b \log \left (c x^n\right )}{d+e x^2} \, dx}{e^2}-\frac {(2 d) \int \frac {a+b \log \left (c x^n\right )}{\left (d+e x^2\right )^2} \, dx}{e^2}+\frac {d^2 \int \frac {a+b \log \left (c x^n\right )}{\left (d+e x^2\right )^3} \, dx}{e^2}\\ &=\frac {d x \left (a+b \log \left (c x^n\right )\right )}{4 e^2 \left (d+e x^2\right )^2}-\frac {x \left (a+b \log \left (c x^n\right )\right )}{e^2 \left (d+e x^2\right )}+\frac {\tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right ) \left (a+b \log \left (c x^n\right )\right )}{\sqrt {d} e^{5/2}}-\frac {\int \frac {a+b \log \left (c x^n\right )}{d+e x^2} \, dx}{e^2}+\frac {(3 d) \int \frac {a+b \log \left (c x^n\right )}{\left (d+e x^2\right )^2} \, dx}{4 e^2}+\frac {(b n) \int \frac {1}{d+e x^2} \, dx}{e^2}-\frac {(b n) \int \frac {\tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {d} \sqrt {e} x} \, dx}{e^2}-\frac {(b d n) \int \frac {1}{\left (d+e x^2\right )^2} \, dx}{4 e^2}\\ &=-\frac {b n x}{8 e^2 \left (d+e x^2\right )}+\frac {b n \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {d} e^{5/2}}+\frac {d x \left (a+b \log \left (c x^n\right )\right )}{4 e^2 \left (d+e x^2\right )^2}-\frac {5 x \left (a+b \log \left (c x^n\right )\right )}{8 e^2 \left (d+e x^2\right )}+\frac {3 \int \frac {a+b \log \left (c x^n\right )}{d+e x^2} \, dx}{8 e^2}-\frac {(b n) \int \frac {\tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{x} \, dx}{\sqrt {d} e^{5/2}}-\frac {(b n) \int \frac {1}{d+e x^2} \, dx}{8 e^2}-\frac {(3 b n) \int \frac {1}{d+e x^2} \, dx}{8 e^2}+\frac {(b n) \int \frac {\tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {d} \sqrt {e} x} \, dx}{e^2}\\ &=-\frac {b n x}{8 e^2 \left (d+e x^2\right )}+\frac {b n \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{2 \sqrt {d} e^{5/2}}+\frac {d x \left (a+b \log \left (c x^n\right )\right )}{4 e^2 \left (d+e x^2\right )^2}-\frac {5 x \left (a+b \log \left (c x^n\right )\right )}{8 e^2 \left (d+e x^2\right )}+\frac {3 \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right ) \left (a+b \log \left (c x^n\right )\right )}{8 \sqrt {d} e^{5/2}}-\frac {(i b n) \int \frac {\log \left (1-\frac {i \sqrt {e} x}{\sqrt {d}}\right )}{x} \, dx}{2 \sqrt {d} e^{5/2}}+\frac {(i b n) \int \frac {\log \left (1+\frac {i \sqrt {e} x}{\sqrt {d}}\right )}{x} \, dx}{2 \sqrt {d} e^{5/2}}+\frac {(b n) \int \frac {\tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{x} \, dx}{\sqrt {d} e^{5/2}}-\frac {(3 b n) \int \frac {\tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {d} \sqrt {e} x} \, dx}{8 e^2}\\ &=-\frac {b n x}{8 e^2 \left (d+e x^2\right )}+\frac {b n \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{2 \sqrt {d} e^{5/2}}+\frac {d x \left (a+b \log \left (c x^n\right )\right )}{4 e^2 \left (d+e x^2\right )^2}-\frac {5 x \left (a+b \log \left (c x^n\right )\right )}{8 e^2 \left (d+e x^2\right )}+\frac {3 \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right ) \left (a+b \log \left (c x^n\right )\right )}{8 \sqrt {d} e^{5/2}}-\frac {i b n \text {Li}_2\left (-\frac {i \sqrt {e} x}{\sqrt {d}}\right )}{2 \sqrt {d} e^{5/2}}+\frac {i b n \text {Li}_2\left (\frac {i \sqrt {e} x}{\sqrt {d}}\right )}{2 \sqrt {d} e^{5/2}}+\frac {(i b n) \int \frac {\log \left (1-\frac {i \sqrt {e} x}{\sqrt {d}}\right )}{x} \, dx}{2 \sqrt {d} e^{5/2}}-\frac {(i b n) \int \frac {\log \left (1+\frac {i \sqrt {e} x}{\sqrt {d}}\right )}{x} \, dx}{2 \sqrt {d} e^{5/2}}-\frac {(3 b n) \int \frac {\tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{x} \, dx}{8 \sqrt {d} e^{5/2}}\\ &=-\frac {b n x}{8 e^2 \left (d+e x^2\right )}+\frac {b n \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{2 \sqrt {d} e^{5/2}}+\frac {d x \left (a+b \log \left (c x^n\right )\right )}{4 e^2 \left (d+e x^2\right )^2}-\frac {5 x \left (a+b \log \left (c x^n\right )\right )}{8 e^2 \left (d+e x^2\right )}+\frac {3 \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right ) \left (a+b \log \left (c x^n\right )\right )}{8 \sqrt {d} e^{5/2}}-\frac {(3 i b n) \int \frac {\log \left (1-\frac {i \sqrt {e} x}{\sqrt {d}}\right )}{x} \, dx}{16 \sqrt {d} e^{5/2}}+\frac {(3 i b n) \int \frac {\log \left (1+\frac {i \sqrt {e} x}{\sqrt {d}}\right )}{x} \, dx}{16 \sqrt {d} e^{5/2}}\\ &=-\frac {b n x}{8 e^2 \left (d+e x^2\right )}+\frac {b n \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{2 \sqrt {d} e^{5/2}}+\frac {d x \left (a+b \log \left (c x^n\right )\right )}{4 e^2 \left (d+e x^2\right )^2}-\frac {5 x \left (a+b \log \left (c x^n\right )\right )}{8 e^2 \left (d+e x^2\right )}+\frac {3 \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right ) \left (a+b \log \left (c x^n\right )\right )}{8 \sqrt {d} e^{5/2}}-\frac {3 i b n \text {Li}_2\left (-\frac {i \sqrt {e} x}{\sqrt {d}}\right )}{16 \sqrt {d} e^{5/2}}+\frac {3 i b n \text {Li}_2\left (\frac {i \sqrt {e} x}{\sqrt {d}}\right )}{16 \sqrt {d} e^{5/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(495\) vs. \(2(211)=422\).
time = 0.86, size = 495, normalized size = 2.35 \begin {gather*} \frac {-\frac {\sqrt {-d} \left (a+b \log \left (c x^n\right )\right )}{\left (\sqrt {-d}-\sqrt {e} x\right )^2}+\frac {5 \left (a+b \log \left (c x^n\right )\right )}{\sqrt {-d}-\sqrt {e} x}+\frac {\sqrt {-d} \left (a+b \log \left (c x^n\right )\right )}{\left (\sqrt {-d}+\sqrt {e} x\right )^2}-\frac {5 \left (a+b \log \left (c x^n\right )\right )}{\sqrt {-d}+\sqrt {e} x}-\frac {5 b n \left (\log (x)-\log \left (\sqrt {-d}-\sqrt {e} x\right )\right )}{\sqrt {-d}}+\frac {5 b n \left (\log (x)-\log \left (\sqrt {-d}+\sqrt {e} x\right )\right )}{\sqrt {-d}}-\frac {b n \left (d+\left (d-\sqrt {-d} \sqrt {e} x\right ) \log (x)+\left (-d+\sqrt {-d} \sqrt {e} x\right ) \log \left (\sqrt {-d}+\sqrt {e} x\right )\right )}{d \left (\sqrt {-d}+\sqrt {e} x\right )}-\frac {3 \left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {\sqrt {e} x}{\sqrt {-d}}\right )}{\sqrt {-d}}+\frac {b n \left (d+\left (d+\sqrt {-d} \sqrt {e} x\right ) \log (x)-\left (d+\sqrt {-d} \sqrt {e} x\right ) \log \left ((-d)^{3/2}+d \sqrt {e} x\right )\right )}{d \left (\sqrt {-d}-\sqrt {e} x\right )}+\frac {3 \left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {d \sqrt {e} x}{(-d)^{3/2}}\right )}{\sqrt {-d}}+\frac {3 b n \text {Li}_2\left (\frac {\sqrt {e} x}{\sqrt {-d}}\right )}{\sqrt {-d}}-\frac {3 b n \text {Li}_2\left (\frac {d \sqrt {e} x}{(-d)^{3/2}}\right )}{\sqrt {-d}}}{16 e^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.15, size = 1311, normalized size = 6.21
method | result | size |
risch | \(\text {Expression too large to display}\) | \(1311\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{4} \left (a + b \log {\left (c x^{n} \right )}\right )}{\left (d + e x^{2}\right )^{3}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {x^4\,\left (a+b\,\ln \left (c\,x^n\right )\right )}{{\left (e\,x^2+d\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________